PEHasSavedData
Use PEHasSavedData to determine if the specified report has data saved with it in memory. With this information, you can determine whether or not the data needs to be refreshed before the report is printed. See Remarks below.
C Syntax
BOOL CRPE_API PEHasSavedData (
short printJob,
BOOL FAR *hasSavedData );
Parameters
printJob
| Specifies the handle of the print job you want to query to determine if it has saved data with it.
|
hasSavedData
| Specifies a pointer to a Boolean value that indicates whether or not there is data saved with the report.
|
Returns
- TRUE if the call is successful.
- FALSE if the call fails.
Remarks
- A report may or may not have saved data when a print job is first opened from a report file. Since data is saved during a print, however, a report will always have saved data immediately after it is printed.
- The default behavior is for a report to use its saved data rather than refresh its data from the database when printing a report.
- Use PEDiscardSavedData, to release the saved data associated with a report. The next time the report is printed, it will get current data from the database.
VB Syntax
Declare Function PEHasSavedData Lib "crpe32.dll" (
ByVal printJob As Integer, HasSavedData As Long ) As Integer
Delphi Syntax
function PEHasSavedData(
printJob: Word;
var hasSavedData: Bool
): Bool stdcall;